#! /usr/bin/env bash

cd "$(dirname "$0")"
cd ..

if screen -r select.airobot-ng > /dev/null
then
	exit
fi

./command/stop.sh

echo $(date +"%Y-%m-%d %H:%M:%S") Restarting radio monitor
airmon-ng start wlan2 > /dev/null
airmon-ng start wlan1 > /dev/null
airmon-ng start wlan0 > /dev/null

screen -S select.airobot-ng -m screen/select.sh mon0

